@echo off
setlocal enabledelayedexpansion
setlocal enableextensions

set "ES_JAVA_HOME=E:\dev\jdk\jdk-11.0.8+10"
set "ES_BASEHOME=%~dp0cluster\%1"

set "ES_PATH_CONF=%ES_BASEHOME%\config"
set "ES_TMPDIR=%ES_BASEHOME%\tmp"
rem set "ES_HOME=cluster\%1"

call elasticsearch.bat
endlocal
endlocal
 @echo on